package com.hnkywl.sts.entity.xsgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.base.Sjzdz;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * 说明：转库单明细
 * 包:        com.hnkywl.sts.entity.xsgl
 * 类描述:    转库单明细
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name = "T_BIZ_ZKDMX")
@Where(clause = "deleted!='1'")
public class Zkdmx extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqZkdmx", allocationSize = 1, sequenceName = "SEQ_BIZ_ZKDMX")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqZkdmx")
    private Long id;
    /**
     * 转库单
     */
    @ManyToOne
    @JoinColumn(name = "ZKD_ID")
    private Zkd zkd;

    /**
     * 原卡号
     */
    @ManyToOne
    @JoinColumn(name = "KH_ID")
    private Kh kh;
    /**
     * 新卡号
     */
    @ManyToOne
    @JoinColumn(name = "NEW_KH_ID")
    private Kh newkh;

    /**
     * 申请件数
     */
    private Integer zkjs;

    /**
     * 申请数量
     */
    private Double zksl;

    /**
     * 转出件数
     */
    private Integer zcjs;

    /**
     * 转出数量
     */
    private Double zcsl;

    /**
     * 转入件数
     */
    private Integer zrjs;

    /**
     * 转入数量
     */
    private Double zrsl;

    /**
     * 领料明细备注
     */
    private String bz;

    public Integer getZcjs() {
        return zcjs;
    }

    public void setZcjs(Integer zcjs) {
        this.zcjs = zcjs;
    }

    public Double getZcsl() {
        return zcsl;
    }

    public void setZcsl(Double zcsl) {
        this.zcsl = zcsl;
    }

    public Integer getZrjs() {
        return zrjs;
    }

    public void setZrjs(Integer zrjs) {
        this.zrjs = zrjs;
    }

    public Double getZrsl() {
        return zrsl;
    }

    public void setZrsl(Double zrsl) {
        this.zrsl = zrsl;
    }

    public Kh getNewkh() {
        return newkh;
    }

    public void setNewkh(Kh newkh) {
        this.newkh = newkh;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Zkd getZkd() {
        return zkd;
    }

    public void setZkd(Zkd zkd) {
        this.zkd = zkd;
    }

    public Kh getKh() {
        return kh;
    }

    public void setKh(Kh kh) {
        this.kh = kh;
    }

    public Integer getZkjs() {
        return zkjs;
    }

    public void setZkjs(Integer zkjs) {
        this.zkjs = zkjs;
    }

    public Double getZksl() {
        return zksl;
    }

    public void setZksl(Double zksl) {
        this.zksl = zksl;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }
}
